import request from '@/utils/request'

// 查询订单投诉列表
export function listOrderComplaint(query) {
  return request({
    url: '/order/orderComplaint/list',
    method: 'get',
    params: query
  })
}

// 查询订单投诉详细
export function getOrderComplaint(id) {
  return request({
    url: '/order/orderComplaint/' + id,
    method: 'get'
  })
}

// 新增订单投诉
export function addOrderComplaint(data) {
  return request({
    url: '/order/orderComplaint',
    method: 'post',
    data: data
  })
}

// 修改订单投诉
export function updateOrderComplaint(data) {
  return request({
    url: '/order/orderComplaint',
    method: 'put',
    data: data
  })
}

// 删除订单投诉
export function delOrderComplaint(id) {
  return request({
    url: '/order/orderComplaint/' + id,
    method: 'delete'
  })
}
